home *** CD-ROM | disk | FTP | other *** search
- Path: news.uwa.edu.au!fechin
- From: fechin@tartarus.uwa.edu.au (Paul McCormick)
- Newsgroups: comp.lang.c++
- Subject: Algorithms needed
- Date: 26 Mar 1996 11:16:47 GMT
- Organization: The University of Western Australia
- Message-ID: <4j8jmv$ka6@styx.uwa.edu.au>
- NNTP-Posting-Host: tartarus.uwa.edu.au
- X-Newsreader: NN version 6.5.0 CURRENT #13
-
- I am doing a project and need source code for the following clasic problems.
- Any language is fine but c or c++ is preferred.
- Problems.
-
- 1)write a approximation algorithm for the TRAVILING SALESMAN problem
- assume that triangle inequality is satisfied and a adjacency matrix is
- used. The program will only be allowed 400 seconds of CPU time to come up
- with the closest solution.
-
- 2)Write a recursive search program that finds th HAMILTONIAN CYCLE of a
- graph
-
- 3)Write a program that finds the diameter of a graph using BFS
- algorithm.
-
- If you have any solutions please mail them to me at
- fechin@tartarus.uwa.edu.au
-
- Thanks
-
-